import { layoutRoutes } from './layout-routes';

export const route = [
  {
    path: '/',
    name: 'layout',
    component: () => import('@/layout/index.vue'),
    redirect: '/home',
    children: layoutRoutes
  },
  //登录
  {
    path: '/login',
    component: () => import('@/views/Login/index.vue'),
    name: 'login',
    meta: {
      title: '登录'
    }
  },
  // 任意路由
  {
    path: "/:pathMatch(.*)*",
    redirect: '/404',
  },
  // 404
  {
    path: "/404",
    name: "NotFound",
    component: () => import("@/views/404/index.vue"),
  },
]